﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI_MasterPage/Main.master" AutoEventWireup="true"
    CodeFile="Search.aspx.cs" Inherits="UI_Main.UiMainSearch" %>
<%@ Register TagPrefix="asp" TagName="PageNavigator" 
    Src="~/UserControl/Page.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="Server">
    <asp:Panel ID="NewArticle" GroupingText="Kết quả" runat="server">
        <asp:ListView ID="ArticleListView" runat="server">
            <ItemTemplate>
                <div class="itemListView" onmouseover="toolVisible('<%# Eval("Id") %>')"
                    onmouseout="toolInvisible('<%# Eval("Id") %>')">
                    <a href="ViewArticle.aspx?Id=<%# Eval("Id") %>">
                        <%# Eval("Title") %></a>
                    <br />
                    <br />
                    <span>
                        <%# Eval("Brief") %></span>
                    <br />
                    <span style="float: right">
                        <%# Eval("User") %></span> 
                    <span id="<%# Eval("Id") %>"
                        class="toolEdit" onmouseover="toolVisible(this.id)" onmouseout="toolInvisible(this.id)">
                        <img src="../Resource/Images/recycle.png" class="iconSize" alt="delete" onclick="callDelete(this, 'deleteArticle', '<%# Eval("Id") %>')" />
                        <img src="../Resource/Images/editor.png" class="iconSize" alt="edit" onclick="editArticle('<%# Eval("Id") %>')" />
                    </span>
                </div>
            </ItemTemplate>
            <EmptyDataTemplate>
                Xin lỗi, không có gì để hiển thị
            </EmptyDataTemplate>
        </asp:ListView>
        <asp:PageNavigator CssClass="pageNavigator" ID="PageNavigator" runat="server">
        </asp:PageNavigator>
    </asp:Panel>
</asp:Content>
